/* 惊喜页面样式 */
.surprise-header {
    text-align: center;
    padding: 40px 0 20px;
}

/* 导航 */
.page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 第一次合集 */
.moments-section {
    margin: 60px 0;
}

.moments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.moment-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.moment-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.moment-image-container {
    height: 200px;
    overflow: hidden;
}

.moment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.moment-card:hover .moment-image {
    transform: scale(1.1);
}

.moment-content {
    padding: 20px;
}

.moment-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.moment-description {
    color: var(--gray);
    line-height: 1.6;
}

/* 父母的信 */
.letter-section {
    margin: 80px 0;
}

.letter-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.letter-decoration {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 107, 155, 0.1);
}

.decoration-top {
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
}

.decoration-bottom {
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
}

.letter-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.letter-content {
    line-height: 1.8;
    position: relative;
    z-index: 10;
    font-family: '"Courier New"', monospace;
    font-size: 1.1rem;
    border-right: 0.15em solid transparent;
}

.letter-signature {
    margin-top: 40px;
    text-align: right;
    font-family: '"Courier New"', monospace;
    position: relative;
    z-index: 10;
}

/* 大合照 */
.photo-collage {
    margin: 80px 0;
    text-align: center;
}

.collage-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.number-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    mask-image: url('../images/number-1.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url('../images/number-1.svg');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.collage-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 30px 20px 20px;
    color: white;
}

.collage-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.collage-subtitle {
    opacity: 0.9;
}

/* 粒子爆炸效果 */
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
}

/* 动画 */
@keyframes particle-explode {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(1) translateX(var(--x)) translateY(var(--y)); opacity: 0; }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .letter-card {
        padding: 25px 20px;
    }
    
    .letter-content {
        font-size: 1rem;
    }
    
    .collage-title {
        font-size: 1.2rem;
    }
}
